package com.jianbing.entity;

import com.jianbing.dao.MongoDBDao;
import com.jianbing.exception.ServiceException;
import com.jianbing.util.TableUtils;

/**
 * Created by Han, Tixiang on 2016/10/12 0012.
 */
public class GjjCity {
    private int id;
    private String name;
    private String jsName;
    private int province;
    private boolean hasBasicInfo = true;//人员基本信息
    private boolean hasGjjBasicInfo; //公积金基本信息
    private boolean hasGjjDetail;//公积金明细
    private boolean hasId ;//身份证
    private boolean hasName ;//姓名
    private boolean hasYuejiao ;//月缴
    private boolean hasGerenYuejiao ;//个人月缴
    private boolean hasGongsiYuejiao ;//公司月缴
    private boolean hasJiaocunjishu ;//缴存基数
    private boolean hasYue ;//余额
    private boolean hasZhuangTai ;//状态
    private boolean hasKaihuTime ;//开户时间
    private boolean hasCompanyName ;//公司名称
    private boolean hasGerenJiaocunBili ;//个人缴存比例
    private boolean hasGongsiJiaocunBili ;//公司缴存比例
    private boolean hasZuihoujiaocunTime ;//最后缴存时间
    private boolean hasFangbuYuejiao ;//房补月缴
    private boolean hasFangbuYue ;//房补余额
    private boolean hasTotalJiaocunBili; //总缴存比例
    private boolean hasIdWhole;//身份证是否完整
    private String url;
    private String queryStepParam;

    public void setHasTotalJiaocunBili(boolean hasTotalJiaocunBili) {
        this.hasTotalJiaocunBili = hasTotalJiaocunBili;
    }

    public boolean isHasTotalJiaocunBili() {

        return hasTotalJiaocunBili;
    }

    public void setHasId(boolean hasId) {
        this.hasId = hasId;
    }

    public void setHasName(boolean hasName) {
        this.hasName = hasName;
    }

    public void setHasYuejiao(boolean hasYuejiao) {
        this.hasYuejiao = hasYuejiao;
    }

    public void setHasGerenYuejiao(boolean hasGerenYuejiao) {
        this.hasGerenYuejiao = hasGerenYuejiao;
    }

    public void setHasGongsiYuejiao(boolean hasGongsiYuejiao) {
        this.hasGongsiYuejiao = hasGongsiYuejiao;
    }

    public void setHasJiaocunjishu(boolean hasJiaocunjishu) {
        this.hasJiaocunjishu = hasJiaocunjishu;
    }

    public void setHasYue(boolean hasYue) {
        this.hasYue = hasYue;
    }

    public void setHasZhuangTai(boolean hasZhuangTai) {
        this.hasZhuangTai = hasZhuangTai;
    }

    public void setHasKaihuTime(boolean hasKaihuTime) {
        this.hasKaihuTime = hasKaihuTime;
    }

    public void setHasCompanyName(boolean hasCompanyName) {
        this.hasCompanyName = hasCompanyName;
    }

    public void setHasGerenJiaocunBili(boolean hasGerenJiaocunBili) {
        this.hasGerenJiaocunBili = hasGerenJiaocunBili;
    }

    public void setHasGongsiJiaocunBili(boolean hasGongsiJiaocunBili) {
        this.hasGongsiJiaocunBili = hasGongsiJiaocunBili;
    }

    public void setHasZuihoujiaocunTime(boolean hasZuihoujiaocunTime) {
        this.hasZuihoujiaocunTime = hasZuihoujiaocunTime;
    }

    public void setHasFangbuYuejiao(boolean hasFangbuYuejiao) {
        this.hasFangbuYuejiao = hasFangbuYuejiao;
    }

    public void setHasFangbuYue(boolean hasFangbuYue) {
        this.hasFangbuYue = hasFangbuYue;
    }

    public boolean isHasId() {
        return hasId;
    }

    public boolean isHasName() {
        return hasName;
    }

    public boolean isHasYuejiao() {
        return hasYuejiao;
    }

    public boolean isHasGerenYuejiao() {
        return hasGerenYuejiao;
    }

    public boolean isHasGongsiYuejiao() {
        return hasGongsiYuejiao;
    }

    public boolean isHasJiaocunjishu() {
        return hasJiaocunjishu;
    }

    public boolean isHasYue() {
        return hasYue;
    }

    public boolean isHasZhuangTai() {
        return hasZhuangTai;
    }

    public boolean isHasKaihuTime() {
        return hasKaihuTime;
    }

    public boolean isHasCompanyName() {
        return hasCompanyName;
    }

    public boolean isHasGerenJiaocunBili() {
        return hasGerenJiaocunBili;
    }

    public boolean isHasGongsiJiaocunBili() {
        return hasGongsiJiaocunBili;
    }

    public boolean isHasZuihoujiaocunTime() {
        return hasZuihoujiaocunTime;
    }

    public boolean isHasFangbuYuejiao() {
        return hasFangbuYuejiao;
    }

    public boolean isHasFangbuYue() {
        return hasFangbuYue;
    }

    private int state = 0;

    public void setHasBasicInfo(boolean hasBasicInfo) {
        this.hasBasicInfo = hasBasicInfo;
    }

    public void setHasGjjBasicInfo(boolean hasGjjBasicInfo) {
        this.hasGjjBasicInfo = hasGjjBasicInfo;
    }

    public void setHasGjjDetail(boolean hasGjjDetail) {
        this.hasGjjDetail = hasGjjDetail;
    }

    public boolean isHasBasicInfo() {

        return hasBasicInfo;
    }

    public boolean isHasGjjBasicInfo() {
        return hasGjjBasicInfo;
    }

    public boolean isHasGjjDetail() {
        return hasGjjDetail;
    }


    public void setQueryStepParam(String queryStepParam) {
        this.queryStepParam = queryStepParam;
    }

    public String getQueryStepParam() {
        return queryStepParam;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setJsName(String jsName) {
        this.jsName = jsName;
    }

    public void setProvince(int province) {
        this.province = province;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getId() {

        return id;
    }


    public String getJsName() {
        return jsName;
    }

    public int getProvince() {
        return province;
    }

    public int getState() {
        return state;
    }


    public void setName(String name) {
        this.name = name;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {

        return name;
    }

    public String getUrl() {
        return url;
    }

    public boolean isHasIdWhole() {
		return hasIdWhole;
	}

	public void setHasIdWhole(boolean hasIdWhole) {
		this.hasIdWhole = hasIdWhole;
	}

	public static void main(String[] args) throws Exception {
        GjjCity city = new GjjCity();
        city.setName("杭州");
        city.setProvince(1);
        city.setJsName("hangzhou.js");
        city.setState(1);
        city.setUrl("http://www.baidu.com");
        city.setQueryStepParam("[{\"loginTypeId\":\"login1\",\"name\":\"登录方式1\",\"loginStepDetail\":[{\"currentStep\":1,\"stepName\":\"input_account\",\"loginParam\":[{\"name\":\"id\",\"note\":\"请输入账号\"}],\"preStep\":null,\"nextStep\":2},{\"currentStep\":2,\"stepName\":\"input_phone_code\",\"loginParam\":[{\"name\":\"phone\",\"note\":\"请输入手机号码\"},{\"name\":\"code\",\"note\":\"请输入验证码\"}],\"preStep\":1,\"nextStep\":3},{\"currentStep\":3,\"stepName\":\"input_phone_code2\",\"loginParam\":[{\"name\":\"phone\",\"note\":\"请输入手机号码2\"},{\"name\":\"code\",\"note\":\"请输入验证码2\"}],\"preStep\":2,\"nextStep\":null}]},{\"loginTypeId\":\"login2\",\"name\":\"登录方式2\",\"loginStepDetail\":[{\"currentStep\":1,\"stepName\":\"input_account\",\"loginParam\":[{\"name\":\"id\",\"note\":\"请输入账号\"}],\"preStep\":null,\"nextStep\":2},{\"currentStep\":2,\"stepName\":\"input_phone_code\",\"loginParam\":[{\"name\":\"phone\",\"note\":\"请输入手机号码\"},{\"name\":\"code\",\"note\":\"请输入验证码\"}],\"preStep\":1,\"nextStep\":3},{\"currentStep\":3,\"stepName\":\"input_phone_code2\",\"loginParam\":[{\"name\":\"phone\",\"note\":\"请输入手机号码2\"},{\"name\":\"code\",\"note\":\"请输入验证码2\"}],\"preStep\":2,\"nextStep\":null}]}]");

        city.setId(MongoDBDao.getNextId(TableUtils.getTableName(GjjCity.class), "id"));
        MongoDBDao.insert(TableUtils.getTableName(GjjCity.class), city);
    }
}
